CC=g++
CFLAGS=-Wall -I. -DDEBUG

all:main

main: main.o dfg.o schedule_algorithm.o
	$(CC) $(CFLAGS) -o $@ $^ 

main.o: main.cpp dfg.h schedule_algorithm.h
	$(CC) $(CFLAGS) -c -o $@ $<

dfg.o: dfg.cpp dfg.h debug.h
	$(CC) $(CFLAGS) -c -o $@ $<
	
schedule_algorithm.o:schedule_algorithm.cpp schedule_algorithm.h
	$(CC) $(CFLAGS) -c -o $@ $<